﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ListClass.aspx.cs" Inherits="Manager_ListClass" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
        .auto-style1 {}
        .auto-style2 {
            text-align: center;
            font-size: x-large;
            background-color: #99CCFF;
        }
        .auto-style3 {
            text-align: right;
        }
        </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table style="width:55%; height: 242px;" align="center">
            <tr>
                <td class="auto-style2"><strong>班级管理</strong></td>
            </tr>
            <tr>
                <td class="auto-style1">请选择专业：<asp:DropDownList ID="DropDownList1" runat="server" Height="16px" Width="120px" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="auto-style1">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" OnRowCommand="GridView1_RowCommand" style="text-align: center" Width="730px">
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:TemplateField HeaderText="班级ID">
                                <ItemTemplate>
                                    <asp:Label ID="labClassID" runat="server" BorderStyle="None" Text ='<%#Eval ("ClassID") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="班级名称">
                                <ItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="所在系">
                                <ItemTemplate>
                                    <asp:DropDownList ID="DropDownList2" runat="server" Height="16px" Width="100px">
                                    </asp:DropDownList>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="编辑">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server">编辑</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="删除">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton2" runat="server">删除</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="查看辅导员">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton3" runat="server">查看</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EditRowStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td class="auto-style1">
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click1" Text="添加班级" Width="130px" />
                </td>
            </tr>
            <tr>
                <td class="auto-style1">
                    <asp:Panel ID="Panel1" runat="server">
                        <table style="width:65%; height: 160px;">
                            <tr>
                                <td class="auto-style3">班级ID：</td>
                                <td>
                                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="auto-style3">班级名称：</td>
                                <td>
                                    <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="auto-style3">所在系：</td>
                                <td>
                                    <asp:DropDownList ID="DropDownList3" runat="server" Height="16px" Width="145px">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td class="auto-style3">
                                    <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="修改" Width="70px" />
                                </td>
                                <td>&nbsp; &nbsp;<asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="隐藏" Width="70px" />
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
